What could and should be legislated against is an organisation, and particularly one with tax free status, dictating who should be shunned. Furthermore the threat of being shunned if you don't shun another individual should also be outlawed.
Shunning of one individual by another should be a personal choice not mandated by a corporation.